package com.example.understandvideo.pojo.request;

import lombok.Data;

import java.io.Serializable;

@Data
public class CommonSearchRequest implements Serializable {
    private int pageNumber = 1;
    private int pageSize = 10;
    private String orderBy;
    private long offset = 0;
    private String order;

    public Long getOffset() {
        return (long) (pageNumber - 1) * pageSize;
    }
}
